# coding: utf-8
from pycode import render_to
from pycode.content.models import Article

@render_to("mainpage.html")
def main(request):
	
	return { "news": Article.all().filter("is_news =", True).order("-created") }
	
	'''
	from pycode.account.models import get_current_user_profile
	up = get_current_user_profile()
	print up.get_display_name()
	
	mp = MainPageView()
	return mp.view(request)
	'''
